<template>
    <div class="conect-video-inform row aic">
        <div class="logo">
            <img src="@/assets/conectVideo/conectLogo.png" alt="">
        </div>
        <div class="context">
            <div class="name">{{fromUsername}}邀请您视频面试</div>
            <el-button type="success" size="mini" icon="el-icon-phone-outline" @click="handlesuccess">同意</el-button>
            <el-button type="danger" size="mini" icon="el-icon-circle-close-outline" @click="handleFailed">拒绝</el-button>
        </div>
        <audio :src="conect" id='audio' loop="loop"  autoplay="autoplay" ></audio>
    </div>
</template>

<script>
import conect from "@/assets/audio/conect.mp3";
export default {
  props:['fromUsername'],
  data(){
    return {
        conect,
    }
  },

  mounted(){
  },
  methods: {
      handlesuccess(){
        //   this.handleConectInformSuccess('aaa')
          this.$emit('handlesuccess','')
      },
      handleFailed(){
          this.$emit('handleFailed','')
      }
  }
}
</script>

<style lang="less">
.conect-video-inform {
    position: fixed;
    width: 300px;
    background: #f3f8ff;
    // background: #000;
    height: 85px;
    right: 30px;
    top: 50px;
    border-radius: 8px;
    padding: 0 15px;

    .logo {
        height: 50px;
        img {
            height: 100%;
        }
    }

    .context {
        margin-left: 24px;
        .name {
            margin-bottom: 7px;
        }
    }
}
</style>
